Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api: Expose vSphere API to evict subscribed content library #3402

Merged
merged 3 commits into from
Apr 12, 2024

Conversation

acharyasreej
Copy link
Contributor

@acharyasreej acharyasreej commented Apr 8, 2024

Closes: #3400

Description

This change exposes the vSphere API to evict the subscribed content library to free up storage capacity.
The vSphere API evicts the cached content of an on-demand subscribed library. This operation allows the cached content of a subscribed library to be removed to free up storage capacity. This operation will only work when a subscribed library is synchronized on-demand.

Closes: #3400

Type of change

Please mark options that are relevant:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to
    not work as expected)
  • This change requires a documentation update
  • Build related change

How Has This Been Tested?

Ran the govc tests locally

acharyasreej@acharyasreY5WYK test % ./library.bats
library.bats
✓ library
✓ library.import
✓ library.deploy
✓ library.clone ovf
✓ library.deploy vmtx
✓ library.vmtx.info
✓ library.pubsub
✓ library.subscriber example
✓ library.create.withpolicy
✓ library.findbyid
✓ library.trust
✓ library.session
✓ library.probe
✓ library.evict

Checklist:

  • My code follows the CONTRIBUTION guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged

Closes: vmware#3400
Signed-off-by: Sreeja Acharya <acharyasreej@vmware.com>
@acharyasreej acharyasreej marked this pull request as draft April 8, 2024 19:00
@acharyasreej acharyasreej force-pushed the issue-3400 branch 4 times, most recently from c756d3d to 3d03feb Compare April 12, 2024 17:34
@acharyasreej acharyasreej marked this pull request as ready for review April 12, 2024 22:19
Copy link
Member

@dougm dougm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks @acharyasreej !

@dougm dougm merged commit 0b6df0d into vmware:main Apr 12, 2024
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expose vSphere API to evict subscribed content library
3 participants